package com.api.common.exception;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class MySystemException extends RuntimeException {

    private static final long serialVersionUID = 1L;
    private int code = 300;
    private String msg;

    public MySystemException(String message) {
        this.code = 300;
        this.msg = message;
    }

    public MySystemException(int code,String message) {
        this.code = code;
        this.msg = message;
    }
}
